From 9458a3b5676bc78eac5807a878b9d8536035d6e2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 14:24:28 +0000 Subject: Make closures GC objects --- ...mpiler.testing.snapshots.Snapshotter)].expected | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index ec63c7ef..c9c6eaa9 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -11,15 +11,15 @@ Compilation unit elements: memory-load (local "local__a") pointer=(local "closurePointer__0") - layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) - offset=(2 0) + layout=(struct (data-ptr (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 2 0) ) ( memory-load (local "local__b") pointer=(local "closurePointer__0") - layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) - offset=(2 1) + layout=(struct (data-ptr (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 2 1) ) (return (local "local__a")) ) @@ -34,26 +34,26 @@ Locals: Instructions: ( - (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct ()) (struct (data-ptr data-ptr))))) + (alloc-heap (local "closurePointer__f__0") (struct (data-ptr (struct (function-ptr (struct ()) (struct (data-ptr data-ptr))))))) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) - offset=(0) + layout=(struct (data-ptr (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 0) value=(function-ptr "shed__function__f__0") ) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) - offset=(2 0) + layout=(struct (data-ptr (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 2 0) value=(local "local__a") ) ( memory-store pointer=(local "closurePointer__f__0") - layout=(struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))) - offset=(2 1) + layout=(struct (data-ptr (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 2 1) value=(local "local__b") ) (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0")) -- cgit v1.2.3